//
//  UniversialTextfield.m
//  PublicSentimentMonitorSystem
//
//  Created by 郭斌 on 15/11/7.
//  Copyright © 2015年 魏强. All rights reserved.
//

#import "UniversialTextfield.h"

@implementation UniversialTextfield
-(instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if(self )
    {
        
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
#pragma mark - 重写placeholder
-(CGRect)placeholderRectForBounds:(CGRect)bounds
{
    CGRect inset = CGRectMake(10, bounds.origin.y, 185, bounds.size.height);
    return inset;
}

@end
